package com.example.smart.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "角色")
@TableName(autoResultMap = true)
public class Role {
    @Schema(description = "角色编号")
    @TableId(type = IdType.AUTO)
    private Integer roleId;
    @Schema(description = "角色名称")
    private String roleName;
    @Schema(description = "角色状态（启动：0，禁用：1）")
    private Integer roleStatus;
    @Schema(description = "角色描述")
    private String roleDescription;
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @Schema(description = "是否删除（是:1，否:0）")
    @TableLogic(value = "0", delval = "1")
    private Integer roleIsdelete;
}
